package com.beyond.trace.dy.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品事件记录对象 t_trace_dy_record
 * 
 * @author Mr.Yao
 * @date 2022-04-08
 */
@TableName("t_trace_dy_record")
public class TraceDyRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "record_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long recordId;

    /** 记录产品 */
    @Excel(name = "记录产品")
    @ApiModelProperty(value = "记录产品")
    private String recordProduct;

    /** 记录事件 */
    @Excel(name = "记录事件")
    @ApiModelProperty(value = "记录事件")
    private String recordEvent;

    /** 具体操作 */
    @Excel(name = "具体操作")
    @ApiModelProperty(value = "具体操作")
    private String recordOperate;

    /** 记录图片 */
    @Excel(name = "记录图片")
    @ApiModelProperty(value = "记录图片")
    private String productPic;

    /** 是否删除，1，是 0，否 */
    @Excel(name = "是否删除，1，是 0，否")
    @ApiModelProperty(value = "是否删除，1，是 0，否")
    private Long deleteFlag;

    /** 删除人 */
    @Excel(name = "删除人")
    @ApiModelProperty(value = "删除人")
    private String deleteBy;

    /** 删除日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "删除日期")
    private Date deleteTime;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setRecordProduct(String recordProduct) 
    {
        this.recordProduct = recordProduct;
    }

    public String getRecordProduct() 
    {
        return recordProduct;
    }
    public void setRecordEvent(String recordEvent) 
    {
        this.recordEvent = recordEvent;
    }

    public String getRecordEvent() 
    {
        return recordEvent;
    }
    public void setRecordOperate(String recordOperate) 
    {
        this.recordOperate = recordOperate;
    }

    public String getRecordOperate() 
    {
        return recordOperate;
    }
    public void setProductPic(String productPic) 
    {
        this.productPic = productPic;
    }

    public String getProductPic() 
    {
        return productPic;
    }
    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("recordProduct", getRecordProduct())
            .append("recordEvent", getRecordEvent())
            .append("recordOperate", getRecordOperate())
            .append("productPic", getProductPic())
            .append("deleteFlag", getDeleteFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("remark", getRemark())
            .toString();
    }
}
